package com.wsl;

import com.wsl.Publisher.DemoPublisher;
import com.wsl.config.EventConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 15:45 2017/11/24
 * @Modified by:
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(EventConfig.class);
        DemoPublisher demoPublisher = context.getBean(DemoPublisher.class);

        demoPublisher.publish("****************************************************** ");
        context.close();
    }
}